home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Freeware / Adobe AIR 1.5.1 / AdobeAIRInstaller.exe / setup.swf / scripts / _comboDropdownStyle.as < prev    next >
Encoding:
Text File  |  2009-02-12  |  1.2 KB  |  43 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _comboDropdownStyle
  8.    {
  9.       public function _comboDropdownStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var fbs:IFlexModuleFactory = param1;
  17.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown");
  18.          if(!style)
  19.          {
  20.             style = new CSSStyleDeclaration();
  21.             StyleManager.setStyleDeclaration(".comboDropdown",style,false);
  22.          }
  23.          if(style.defaultFactory == null)
  24.          {
  25.             style.defaultFactory = function():void
  26.             {
  27.                this.paddingLeft = 5;
  28.                this.fontWeight = "normal";
  29.                this.cornerRadius = 0;
  30.                this.paddingRight = 5;
  31.                this.dropShadowEnabled = true;
  32.                this.shadowDirection = "center";
  33.                this.leading = 0;
  34.                this.borderThickness = 0;
  35.                this.shadowDistance = 1;
  36.                this.backgroundColor = 16777215;
  37.             };
  38.          }
  39.       }
  40.    }
  41. }
  42.  
  43.